import components from "@/components/schema-form-render/schema-components-registed/components-biz";
import { Input } from "antd";
export const switchComp = (props: any, type?: string) => {
    if (type) {
        const Comp = components[type];
        return <Comp {...props} />
    } else {
        return <Input {...props} />
    }
}
